<?php if(!isset($active)):?>
<?php $active=1;?>
<?php endif;?>

<div class="user-profile">
<div class="profile-nav">
	<ul class="nav nav-pills nav-stacked" style="max-width: 260px;">
		<?php if($active ==1):?>
		<li class="active">
			<a href="<?php echo $this -> createUrl('/setting/profile')?>"> <span class="badge pull-right">42</span>
				个人信息
			</a>
		</li>
		<?php else:?>
		<li>
			<a href="<?php echo $this -> createUrl('/setting/profile')?>"> <span class="badge pull-right">42</span>
				个人信息
			</a>
		</li>		
		<?php endif;?>
		
		<?php if($active ==2):?>
		<li class="active">
			<a href="<?php echo $this -> createUrl('/setting/avatar')?>">头像设置</a>
		</li>
		<?php else:?>
		<li>
			<a href="<?php echo $this -> createUrl('/setting/avatar')?>">头像设置</a>
		</li>
		<?php endif;?>
		<li>
			<a href="#"> 
				消息设置
			</a>
		</li>
	</ul>
	<div class="page-header"></div>
	<ul class="nav nav-pills nav-stacked" style="max-width: 260px;">
		<?php if($active ==4):?>	
		<li class="active">
			<a href="<?php echo $this -> createUrl('/setting/privacy')?>">
				隐私设置
			</a>
		</li>
		<?php else:?>
		<li>
			<a href="<?php echo $this -> createUrl('/setting/privacy')?>">
				隐私设置
			</a>
		</li>
		<?php endif;?>
		<li>
			<a href="#">我的勋章</a>
		</li>
	</ul>
</div>
	<?php echo $content; ?>
</div>